package com.ccl.iot.privates;
public abstract class StorableObject implements Storable{
	private static final long serialVersionUID = 1L;

	private transient OnObjectChangeListener iListener = null;
	
	@Override
	public boolean setOnObjectChangeListener(OnObjectChangeListener aListener) {
		if (aListener != iListener){
			iListener = aListener;
			return true;
		}
		
		return false;
	}
	
	protected void onObjectChange(){
		if (iListener != null){
			iListener.onObjectChange(this);
		}
	}
}
